import request from "@/utils/request";

/**
 * 收藏食谱
 */
export function add(data) {
  return request({
    method: "post",
    url: "/ats/user/collect/add",
    data,
  });
}

/**
 * 收藏食谱
 */
export function deleteByIds(data) {
  return request({
    method: "post",
    url: "/ats/user/collect/delete",
    data,
  });
}

/**
 * 收藏食谱
 */
export function deleteByRecipeIds(data) {
  return request({
    method: "post",
    url: "/ats/user/collect/delete/recipe",
    data,
  });
}

/**
 * 分页查询收藏信息
 */
export function page(data) {
  return request({
    method: "get",
    url: "/ats/user/collect/page",
    data,
  });
}

